﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_BillList.aspx.cs" Inherits="SaleSystem.ComPage.frm_BillList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>销售单，进货单明细</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <ext:PageManager runat="server" ID="PageManager1" />    
    <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="列表"   IsDatabasePaging="true" DataKeyNames="Id,Code" EnableRowNumber="true"  AllowPaging="true" OnPageIndexChange="gv_List_PageIndexChange"  AutoHeight="true" ShowHeader="false" BodyPadding="5px" ShowBorder="false" OnRowCommand="gv_List_RowCommand">
    <Columns>
        <ext:LinkButtonField ColumnID="OK" CommandName="OK" Text="确定" HeaderText="确定" Width="50px" /> 
        <ext:LinkButtonField ColumnID="edit" CommandName="edit"  Text="编辑" HeaderText="编辑" Width="50px" />    
        <ext:BoundField ColumnID="Code" DataField="Code" DataTooltipField="Code" HeaderText="销售单号" Width="100px" />
        <ext:BoundField ColumnID="CustName" DataField="CustName" DataTooltipField="CustName" HeaderText="客户名称"   Width="100px"/>       
        <ext:TemplateField HeaderText="销售日期" Width="80px">
                <ItemTemplate>                
                    <%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "SBill_Date").ToString()).ToString("yyyy-MM-dd")%>
                </ItemTemplate>
            </ext:TemplateField> 
        <ext:BoundField ColumnID="SBDeta_Count" DataField="SBDeta_Count" DataTooltipField="SBDeta_Count" HeaderText="数量" Width="50px"/>
        <ext:BoundField ColumnID="SBDeta_Price" DataField="SBDeta_Price" DataTooltipField="SBDeta_Price" HeaderText="单价" Width="50px"/>
        <ext:BoundField ColumnID="SBDeta_Money" DataField="SBDeta_Money" DataTooltipField="SBDeta_Money" HeaderText="金额" Width="80px"/>
        <ext:BoundField ColumnID="SUser_Name" DataField="SUser_Name" DataTooltipField="SUser_Name" HeaderText="经办人" Width="60px"/> 
        <ext:CheckBoxField ColumnID="SBill_State" DataField="SBill_State" DataTooltipField="SBill_State" HeaderText="结算" Width="50px"/> 
    </Columns>
    </ext:Grid>
   <ext:Window runat="server" ID="win_Content2" Popup="false" EnableIFrame="true" EnableConfirmOnClose="true" EnableMaximize="false"
        Title="新增销售单" IFrameUrl="about:blank" Target="Top" IsModal="true" Width="800px"
        Height="600px" ></ext:Window>
    </div>
    </form>
</body>
</html>
